/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.upc.sma.visual;

import com.springrts.ai.AIFloat3;
import com.springrts.ai.oo.Unit;
import java.util.List;
import java.util.Vector;

/**
 *
 * @author xavi
 */
public interface SpringEventListener {

    public void addEvent(String event);

    public void gameStarted();

    public void enemyCommanderEnterLOS(Vector<Float> position);

    public void buildingConstructed(String building);

    public void orderUnitsConstructed(int id);

    public void refreshTeamUnits(List<Unit> units);

    public void refreshEnemyLOSandRadar(List<Unit> enemiesLOS, List<Unit> enemiesRadar);

    /**
     *
     * @param mapInfo
     * @param cp commander position
     */
    public void refreshMines(List<AIFloat3> minesList) throws Exception;

    public void refreshResourcesMake(float metal, float energy);

    public void refreshResourcesUse(float metal, float energy);

    public void refreshMetalEconomy(String resource,
            float current, float income,float storage, float usage);

    public void refreshEnergyEconomy(String resource, float current,
            float income,float storage, float usage);

}
